<template>
  <swiper>
    <swiper-slide v-for="(item, index) in swiperSlides" :key="index">
      <div class="warp-box" style="width: 100%; height: 100%;">
        <img :src="item" alt="" style="width: 100%; height: 100%;">
      </div>
    </swiper-slide>
  </swiper>
</template>

<script>
  require('swiper/dist/css/swiper.css')
  export default {
    name: 'carrousel',
    data() {
      return {
        swiperOption: {
          autoplay: 3500,
          setWrapperSize: true,
          paginationClickable: true,
          mousewheelControl: true,
          observeParents: true,
          loop: true
        },
        swiperSlides: [
          'static/images/banner.gif',
          'static/images/banner.gif',
          'static/images/banner.gif'
        ]
      }
    },
    mounted() {
    }
  }
</script>
<style scoped="" lang="scss">
  @import '../styles/common/common.scss';
  .swiper-container {
    height: 100%;
    .warp-box {
      position: relative;
      .edge {
        position: absolute;
        width: 100%;
        bottom: 0;
        height: px2rem(34);
        background-image: url('../imgs/edge@2x.png');
        background-repeat: repeat-x;
        background-size: px2rem(60) px2rem(34);
      }
    }
  }
</style>
